package org.casscommunity.sights.shared.event;

import org.casscommunity.sights.shared.event.handler.ClearViolationsEventHandler;

import com.google.gwt.event.shared.GwtEvent;

public class ClearViolationsEvent extends GwtEvent<ClearViolationsEventHandler> {

	private static Type<ClearViolationsEventHandler> TYPE = new Type<ClearViolationsEventHandler>();
	
	public static Type<ClearViolationsEventHandler> getType() {
		if (TYPE == null) {
			TYPE = new Type<ClearViolationsEventHandler>();
		}
		return TYPE;
	}
	
	public ClearViolationsEvent() { }
	
	@Override
	public Type<ClearViolationsEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ClearViolationsEventHandler handler) {
		handler.handleClearViolations();
	}

}
